\(\int \frac {(A+B \cos (c+d x)+C \cos ^2(c+d x)) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx\) [1527]
Optimal result
Integrand size = 45, antiderivative size = 333 \[
\int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx=-\frac {2 (a-b) \sqrt {a+b} (2 A b-3 a B) \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^3 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b} (2 A b+a (A-3 B+3 C)) \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 A \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a d}
\]
[Out]
2/3*A*sec(d*x+c)^(3/2)*sin(d*x+c)*(a+b*cos(d*x+c))^(1/2)/a/d-2/3*(a-b)*(2*A*b-3*B*a)*csc(d*x+c)*EllipticE((a+b
*cos(d*x+c))^(1/2)/(a+b)^(1/2)/cos(d*x+c)^(1/2),((-a-b)/(a-b))^(1/2))*(a+b)^(1/2)*cos(d*x+c)^(1/2)*(a*(1-sec(d
*x+c))/(a+b))^(1/2)*(a*(1+sec(d*x+c))/(a-b))^(1/2)/a^3/d/sec(d*x+c)^(1/2)+2/3*(2*A*b+a*(A-3*B+3*C))*csc(d*x+c)
*EllipticF((a+b*cos(d*x+c))^(1/2)/(a+b)^(1/2)/cos(d*x+c)^(1/2),((-a-b)/(a-b))^(1/2))*(a+b)^(1/2)*cos(d*x+c)^(1
/2)*(a*(1-sec(d*x+c))/(a+b))^(1/2)*(a*(1+sec(d*x+c))/(a-b))^(1/2)/a^2/d/sec(d*x+c)^(1/2)
Rubi [A] (verified)
Time = 1.00 (sec) , antiderivative size = 333, normalized size of antiderivative = 1.00, number of
steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {4306, 3134, 3077, 2895, 3073}
\[
\int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx=-\frac {2 (a-b) \sqrt {a+b} (2 A b-3 a B) \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a^3 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) (a (A-3 B+3 C)+2 A b) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 A \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}}{3 a d}
\]
[In]
Int[((A + B*Cos[c + d*x] + C*Cos[c + d*x]^2)*Sec[c + d*x]^(5/2))/Sqrt[a + b*Cos[c + d*x]],x]
[Out]
(-2*(a - b)*Sqrt[a + b]*(2*A*b - 3*a*B)*Sqrt[Cos[c + d*x]]*Csc[c + d*x]*EllipticE[ArcSin[Sqrt[a + b*Cos[c + d*
x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + S
ec[c + d*x]))/(a - b)])/(3*a^3*d*Sqrt[Sec[c + d*x]]) + (2*Sqrt[a + b]*(2*A*b + a*(A - 3*B + 3*C))*Sqrt[Cos[c +
d*x]]*Csc[c + d*x]*EllipticF[ArcSin[Sqrt[a + b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a
- b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(3*a^2*d*Sqrt[Sec[c + d*x]])
+ (2*A*Sqrt[a + b*Cos[c + d*x]]*Sec[c + d*x]^(3/2)*Sin[c + d*x])/(3*a*d)
Rule 2895
Int[1/(Sqrt[(d_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[-2*(
Tan[e + f*x]/(a*f))*Rt[(a + b)/d, 2]*Sqrt[a*((1 - Csc[e + f*x])/(a + b))]*Sqrt[a*((1 + Csc[e + f*x])/(a - b))]
*EllipticF[ArcSin[Sqrt[a + b*Sin[e + f*x]]/Sqrt[d*Sin[e + f*x]]/Rt[(a + b)/d, 2]], -(a + b)/(a - b)], x] /; Fr
eeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0] && PosQ[(a + b)/d]
Rule 3073
Int[((A_) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(((b_.)*sin[(e_.) + (f_.)*(x_)])^(3/2)*Sqrt[(c_) + (d_.)*sin[(e_.)
+ (f_.)*(x_)]]), x_Symbol] :> Simp[-2*A*(c - d)*(Tan[e + f*x]/(f*b*c^2))*Rt[(c + d)/b, 2]*Sqrt[c*((1 + Csc[e +
f*x])/(c - d))]*Sqrt[c*((1 - Csc[e + f*x])/(c + d))]*EllipticE[ArcSin[Sqrt[c + d*Sin[e + f*x]]/Sqrt[b*Sin[e +
f*x]]/Rt[(c + d)/b, 2]], -(c + d)/(c - d)], x] /; FreeQ[{b, c, d, e, f, A, B}, x] && NeQ[c^2 - d^2, 0] && EqQ
[A, B] && PosQ[(c + d)/b]
Rule 3077
Int[((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(3/2)*Sqrt[(c_) + (d_.)*s
in[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Dist[(A - B)/(a - b), Int[1/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e
+ f*x]]), x], x] - Dist[(A*b - a*B)/(a - b), Int[(1 + Sin[e + f*x])/((a + b*Sin[e + f*x])^(3/2)*Sqrt[c + d*Sin
[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2
- d^2, 0] && NeQ[A, B]
Rule 3134
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*s
in[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-(A*b^2 - a*b*B + a^2*C))*Cos[e
+ f*x]*(a + b*Sin[e + f*x])^(m + 1)*((c + d*Sin[e + f*x])^(n + 1)/(f*(m + 1)*(b*c - a*d)*(a^2 - b^2))), x] + D
ist[1/((m + 1)*(b*c - a*d)*(a^2 - b^2)), Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*Simp[(m + 1)*
(b*c - a*d)*(a*A - b*B + a*C) + d*(A*b^2 - a*b*B + a^2*C)*(m + n + 2) - (c*(A*b^2 - a*b*B + a^2*C) + (m + 1)*(
b*c - a*d)*(A*b - a*B + b*C))*Sin[e + f*x] - d*(A*b^2 - a*b*B + a^2*C)*(m + n + 3)*Sin[e + f*x]^2, x], x], x]
/; FreeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] &&
LtQ[m, -1] && ((EqQ[a, 0] && IntegerQ[m] && !IntegerQ[n]) || !(IntegerQ[2*n] && LtQ[n, -1] && ((IntegerQ[n]
&& !IntegerQ[m]) || EqQ[a, 0])))
Rule 4306
Int[(u_)*((c_.)*sec[(a_.) + (b_.)*(x_)])^(m_.), x_Symbol] :> Dist[(c*Sec[a + b*x])^m*(c*Cos[a + b*x])^m, Int[A
ctivateTrig[u]/(c*Cos[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSineIntegrandQ[u,
x]
Rubi steps \begin{align*}
\text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {A+B \cos (c+d x)+C \cos ^2(c+d x)}{\cos ^{\frac {5}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx \\ & = \frac {2 A \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a d}+\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{2} (-2 A b+3 a B)+\frac {1}{2} a (A+3 C) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{3 a} \\ & = \frac {2 A \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a d}-\frac {\left ((2 A b-3 a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{3 a}+\frac {\left ((2 A b+a (A-3 B+3 C)) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{3 a} \\ & = -\frac {2 (a-b) \sqrt {a+b} (2 A b-3 a B) \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^3 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {a+b} (2 A b+a (A-3 B+3 C)) \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a^2 d \sqrt {\sec (c+d x)}}+\frac {2 A \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 a d} \\
\end{align*}
Mathematica [A] (warning: unable to verify)
Time = 14.41 (sec) , antiderivative size = 326, normalized size of antiderivative = 0.98
\[
\int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx=\frac {2 \left ((a+b \cos (c+d x)) (a A+(-2 A b+3 a B) \cos (c+d x)) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)+\frac {\sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \left (-2 (a+b) (-2 A b+3 a B) E\left (\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right ) \sqrt {\frac {1}{1+\sec (c+d x)}} \sqrt {\frac {b+a \sec (c+d x)}{(a+b) (1+\sec (c+d x))}}+2 a (-2 A b+a (A+3 (B+C))) \operatorname {EllipticF}\left (\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right ),\frac {-a+b}{a+b}\right ) \sqrt {\frac {1}{1+\sec (c+d x)}} \sqrt {\frac {b+a \sec (c+d x)}{(a+b) (1+\sec (c+d x))}}+(2 A b-3 a B) \cos (c+d x) (a+b \cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right ) \tan \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sec ^2\left (\frac {1}{2} (c+d x)\right )}}\right )}{3 a^2 d \sqrt {a+b \cos (c+d x)}}
\]
[In]
Integrate[((A + B*Cos[c + d*x] + C*Cos[c + d*x]^2)*Sec[c + d*x]^(5/2))/Sqrt[a + b*Cos[c + d*x]],x]
[Out]
(2*((a + b*Cos[c + d*x])*(a*A + (-2*A*b + 3*a*B)*Cos[c + d*x])*Sec[c + d*x]^(3/2)*Sin[c + d*x] + (Sqrt[Cos[(c
+ d*x)/2]^2*Sec[c + d*x]]*(-2*(a + b)*(-2*A*b + 3*a*B)*EllipticE[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*S
qrt[(1 + Sec[c + d*x])^(-1)]*Sqrt[(b + a*Sec[c + d*x])/((a + b)*(1 + Sec[c + d*x]))] + 2*a*(-2*A*b + a*(A + 3*
(B + C)))*EllipticF[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Sqrt[(1 + Sec[c + d*x])^(-1)]*Sqrt[(b + a*Sec[
c + d*x])/((a + b)*(1 + Sec[c + d*x]))] + (2*A*b - 3*a*B)*Cos[c + d*x]*(a + b*Cos[c + d*x])*Sec[(c + d*x)/2]^2
*Tan[(c + d*x)/2]))/Sqrt[Sec[(c + d*x)/2]^2]))/(3*a^2*d*Sqrt[a + b*Cos[c + d*x]])
Maple [B] (warning: unable to verify)
Leaf count of result is larger than twice the leaf count of optimal. \(1983\) vs. \(2(299)=598\).
Time = 11.91 (sec) , antiderivative size = 1984, normalized size of antiderivative =
5.96
| | |
method | result | size |
| | |
parts |
\(\text {Expression too large to display}\) |
\(1984\) |
default |
\(\text {Expression too large to display}\) |
\(2564\) |
| | |
|
|
|
[In]
int((A+B*cos(d*x+c)+C*cos(d*x+c)^2)*sec(d*x+c)^(5/2)/(a+b*cos(d*x+c))^(1/2),x,method=_RETURNVERBOSE)
[Out]
-2/3*A/d/a^2*sec(d*x+c)^(5/2)/(1+cos(d*x+c))/(a+b*cos(d*x+c))^(1/2)*((cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b
)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*a^2*cos(d*x+c)^
4-2*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF(cot(d*x+c)-csc
(d*x+c),(-(a-b)/(a+b))^(1/2))*a*b*cos(d*x+c)^4+2*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(
1+cos(d*x+c)))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*a*b*cos(d*x+c)^4+2*(cos(d*x+c)/(1+c
os(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b
))^(1/2))*b^2*cos(d*x+c)^4+2*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*(1/(a+b)*(a+b*cos(d*x+c))/(
1+cos(d*x+c)))^(1/2)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*a^2*cos(d*x+c)^3-4*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a
-b)/(a+b))^(1/2))*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*a*b*cos(d*
x+c)^3+4*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*EllipticE(cot(d*x+c
)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*a*b*cos(d*x+c)^3+4*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*(cos(d*x
+c)/(1+cos(d*x+c)))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*b^2*cos(d*x+c)^3+(cos(d*x+c)/(
1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(
a+b))^(1/2))*a^2*cos(d*x+c)^2-2*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1
/2)*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*a*b*cos(d*x+c)^2+2*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)
*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*a*b*cos
(d*x+c)^2+2*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1
/2)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*b^2*cos(d*x+c)^2-a*b*cos(d*x+c)^3*sin(d*x+c)+2*b^2*cos(d*x+c)^3*sin(d*x+
c)-a^2*cos(d*x+c)^2*sin(d*x+c)+a*b*cos(d*x+c)^2*sin(d*x+c)-a^2*cos(d*x+c)*sin(d*x+c))+2*B/d/a*(-(-(1-cos(d*x+c
))^2*csc(d*x+c)^2+1)^(1/2)*((a*(1-cos(d*x+c))^2*csc(d*x+c)^2-b*(1-cos(d*x+c))^2*csc(d*x+c)^2+a+b)/(a+b))^(1/2)
*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*a+(-(1-cos(d*x+c))^2*csc(d*x+c)^2+1)^(1/2)*((a*(1-cos(d
*x+c))^2*csc(d*x+c)^2-b*(1-cos(d*x+c))^2*csc(d*x+c)^2+a+b)/(a+b))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b
)/(a+b))^(1/2))*a+(-(1-cos(d*x+c))^2*csc(d*x+c)^2+1)^(1/2)*((a*(1-cos(d*x+c))^2*csc(d*x+c)^2-b*(1-cos(d*x+c))^
2*csc(d*x+c)^2+a+b)/(a+b))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*b+(1-cos(d*x+c))^3*a*cs
c(d*x+c)^3-(1-cos(d*x+c))^3*b*csc(d*x+c)^3+a*(-cot(d*x+c)+csc(d*x+c))+b*(-cot(d*x+c)+csc(d*x+c)))*((a*(1-cos(d
*x+c))^2*csc(d*x+c)^2-b*(1-cos(d*x+c))^2*csc(d*x+c)^2+a+b)/((1-cos(d*x+c))^2*csc(d*x+c)^2+1))^(1/2)*((1-cos(d*
x+c))^2*csc(d*x+c)^2-1)^2*(-((1-cos(d*x+c))^2*csc(d*x+c)^2+1)/((1-cos(d*x+c))^2*csc(d*x+c)^2-1))^(5/2)/(a*(1-c
os(d*x+c))^2*csc(d*x+c)^2-b*(1-cos(d*x+c))^2*csc(d*x+c)^2+a+b)/((1-cos(d*x+c))^2*csc(d*x+c)^2+1)^2-2*C/d*(1/(a
+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))/(a+b*cos(d*x+
c))^(1/2)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*sec(d*x+c)^(5/2)*(cos(d*x+c)^3+cos(d*x+c)^2)
Fricas [F]
\[
\int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}{\sqrt {b \cos \left (d x + c\right ) + a}} \,d x }
\]
[In]
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)*sec(d*x+c)^(5/2)/(a+b*cos(d*x+c))^(1/2),x, algorithm="fricas")
[Out]
integral((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*sec(d*x + c)^(5/2)/sqrt(b*cos(d*x + c) + a), x)
Sympy [F(-1)]
Timed out. \[
\int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx=\text {Timed out}
\]
[In]
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)**2)*sec(d*x+c)**(5/2)/(a+b*cos(d*x+c))**(1/2),x)
[Out]
Timed out
Maxima [F]
\[
\int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}{\sqrt {b \cos \left (d x + c\right ) + a}} \,d x }
\]
[In]
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)*sec(d*x+c)^(5/2)/(a+b*cos(d*x+c))^(1/2),x, algorithm="maxima")
[Out]
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*sec(d*x + c)^(5/2)/sqrt(b*cos(d*x + c) + a), x)
Giac [F]
\[
\int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}{\sqrt {b \cos \left (d x + c\right ) + a}} \,d x }
\]
[In]
integrate((A+B*cos(d*x+c)+C*cos(d*x+c)^2)*sec(d*x+c)^(5/2)/(a+b*cos(d*x+c))^(1/2),x, algorithm="giac")
[Out]
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*sec(d*x + c)^(5/2)/sqrt(b*cos(d*x + c) + a), x)
Mupad [F(-1)]
Timed out. \[
\int \frac {\left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx=\int \frac {{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right )}{\sqrt {a+b\,\cos \left (c+d\,x\right )}} \,d x
\]
[In]
int(((1/cos(c + d*x))^(5/2)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2))/(a + b*cos(c + d*x))^(1/2),x)
[Out]
int(((1/cos(c + d*x))^(5/2)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2))/(a + b*cos(c + d*x))^(1/2), x)